package ee.android.kinokavad;

import android.app.Application;
import ee.android.kinokavad.data.db.DBController;

public class App extends Application {

	public static final boolean LOCAL_LOG = false;
	public static final boolean FLURRY_LOG = true;
	
	private DBController dataController;
		
	@Override
	public void onCreate() {
		super.onCreate();
		
		getDataController().open();
	}
	
	public synchronized DBController getDataController() {
		
		if (dataController == null) {
			dataController = new DBController(this);
		}
		
		return dataController;
	}

	
}
